<?php 
function duixin_tie($id) {
    $rt = \Phpcmf\Service::M()->db->table(SITE_ID.'_'.'quan_form_son')->where('id', $id)->get()->getRowArray();
    if ($rt['catid']==4 || $rt['catid']==5 || $rt['catid']==10) {
        $dataurl = SITE_URL.'index.php?s=quan&c=son&id='.$id;
        $data = '<a href="'.$dataurl.'" target="_blank">[查看]</a>';
    } else {
        $data = '';
    }
    return $data;
}